<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>字面量创建对象</title>
		<script>
			var arr = new Array();
			// 字面量创建对象的方式
			var arr1 = [1,2,3,4];
			
			// 字面量创建对象
			var obj = {
				name: '大周老师字面量',
				age: 18,
				sex: '男',
				say: function(){
					console.log('大周老师会说话')
				}
			}
			console.log(obj.name);
			console.log(obj.age);
			
			obj.say();
			// console.log('123a' >= 1234);
		</script>
	</head>
	<body>
	</body>
</html>